import request from '@/libs/request'

export const api ={
	/*create_time: new Date().Format("yyyy-MM-dd hh:mm:ss"),*/
	//userOauth:function(data) {return request({url: '/api/Index/userOauth',method: 'POST',data});}//编辑文章
	rules:{
		// 对name字段进行必填验证
		name: {
			rules: [{required: true,errorMessage: '请输入姓名'},
				{minLength: 1,maxLength: 100,errorMessage: '姓名长度在 {minLength} 到 {maxLength} 个字符'}
			]
		},
		user_code: {
			rules: [
				{required: true,errorMessage: '请输入工号'},
				{minLength: 1,maxLength: 100,errorMessage: '长度在 {minLength} 到 {maxLength} 个字符'}
			]
		},
		// 对email字段进行必填验证
		email: {
			rules: [{format: 'email',errorMessage: '请输入正确的邮箱地址'}]
		}
	},
	
}

